package cac.fenjian.resource.finProReceiveSearch.dao;

import cac.fenjian.resource.WmsDeliverPlan.dto.WmsDeliverPlanDTO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface FinProReceiveSearchDao {

    //成品接收页面条件查询
    public Page<WmsDeliverPlanDTO> searchParamsByItemFS(@Param("bean") WmsDeliverPlanDTO wmsDeliverPlanDTO, @Param("orderBy") String orderBy, @Param("keyWords") String keyWords, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("itemCode") String itemCode);

    //成品条码查询
    public Page<List<HashMap>> searchByBarcodeFS(@Param("bean") HashMap wmsDeliverPlanDTO, @Param("orderBy") String orderBy, @Param("keyWords") String keyWords, @Param("barcode") String barcode);
    //判断结果集
    public List<WmsDeliverPlanDTO> searchByBarcodeFS(@Param("bean") WmsDeliverPlanDTO wmsDeliverPlanDTO, @Param("barcode") String barcode);

    public List<HashMap> searchByBarcodeFs(@Param("barcode") String barcode);


    //根据物流编码查询数据
    public Integer searchBarCode(@Param("barcode") String barcode);

    //根据物流编码查询数据状态是否合规
    public Integer isIllegalByBarCode(@Param("barcode") String barcode);

    //改变接收状态
    public Integer changeTransferType(@Param("id") String id,@Param("date") Date date,
                                      @Param("receiveEmpCode") String receiveEmpCode,
                                      @Param("ip") String ip,@Param("wmsDeliveryPlanId") String wmsDeliveryPlanId);


    public Integer searchObject(String barcode);

    //正常接收->ERP
    public HashMap scanReceiveCp(String barcode);

    //查询是否发起协调
    public HashMap searchCoordinate(String barcode);

    //归零接收->ERP
    public HashMap coordinateReceive(String barcode);

    int queryCpHgzIsRepeat(@Param("barcode") String barcode,@Param("shop") String shop);
}
